home *** CD-ROM | disk | FTP | other *** search
/ Aminet 31 / Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso / Aminet / comm / bbs / cnet5demo.lha / InstallCNet_Dist < prev   
Text File  |  1999-03-23  |  22KB  |  995 lines

  1. ; $VER: CNet Install 1.05 (7.29.98)
  2. (set CNetVersion "4.29")
  3.  
  4. ; CNet PRO 4 Installation script
  5. ;
  6. ; The publishers of CNet PRO 4 wish to extend many THANKS to Bob Maple
  7. ; for the creation of this install script, (version 1.0 (12.13.93))
  8. ; His elegant work has been chopped and hacked by others since then,
  9. ; so if you find something here that looks sloppy, DON'T BLAME BOB!
  10. ;
  11. ; Requires Commodore 'Installer' program
  12. ;
  13. ; Slight tweaks by Jim Selleck for CNet/3 release version 3.04, 3.05c
  14. ;
  15. ; Updated for CNet/4 install by Ray Akey
  16.  
  17. ; This installation script is provided AS-IS, with no warranties expressed
  18. ; or implied.  The authors will not be held responsible for any damages due
  19. ; to the use or mis-use of this installation script; using this script is
  20. ; entirely at your own risk.
  21.  
  22. ;
  23. ; Define some global variables
  24. ;
  25.  
  26. (set help-modify-self
  27.  
  28.     (cat        "If you have modified any of these files, "
  29.             "you might want to skip this part and manually "
  30.             "look for any changes/modify them yourself."
  31.     )
  32. )
  33.  
  34. (set ask-install-part    "Please select the partition/directory to " )
  35. (set ask-install-part2  "install the master CNET directory."        )
  36. (set ask-install-nodir  "(NOTE: A directory will NOT be created.)\n")
  37.  
  38.  
  39. ;
  40. ; BEGIN PROCEDURE DEFINITION
  41. ;
  42. ; The installer script basically consists of a series of calls to different
  43. ; procedures which install certain sets of data, depending on whether or not
  44. ; they are a new-installer or an update-installer.
  45. ;
  46.  
  47. (procedure    CopyExecutables1    ; Copies executables/etc from disk 1
  48. (
  49.  
  50.     (copyfiles
  51.  
  52.         (source "cnet")
  53.         (dest   "CNET:")
  54.  
  55.         (choices
  56.  
  57.             "bbs"        "bbsroom0"    "bbswake"    "big_numbers"
  58.             "close"        "config"    "control"    "cron"
  59.             "file-task"    "mail-task"    "news-task"    "setpass"
  60.             "toss"        "unlock"    "vde"        "vde2"
  61.             "yank-task"    "subboardutil"    "eraseallusers"
  62.         )
  63.  
  64.         (optional "nofail" "askuser")
  65.     )
  66.  
  67.     ; Makes sure the PURE bit is set, saving millions of people asking
  68.     ; why this new version eats so much RAM.
  69.  
  70.     (protect "CNet:BBS" "+r +w +e +d +p")
  71.  
  72.     (copyfiles
  73.  
  74.         (source "cnet/doors")
  75.         (dest    "cnet:doors")
  76.  
  77.         (all)
  78.         (optional "nofail" "askuser")
  79.     )
  80.  
  81. )
  82. )
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89. (procedure    CopyExecutables2    ; Copies executables from disk 2
  90. (
  91.  
  92.     (copyfiles
  93.  
  94.         (source "sys/c")
  95.         (dest    "sys:C"  )
  96.  
  97.         (all)
  98.         (optional "nofail" "askuser")
  99.     )
  100.  
  101.     (copyfiles
  102.  
  103.         (source "sys/fonts")
  104.         (dest    "sys:FONTS"  )
  105.  
  106.         (all)
  107.         (optional "nofail" "askuser")
  108.     )
  109.  
  110.     (copyfiles
  111.  
  112.         (source "sys/l")
  113.         (dest    "sys:L" )
  114.  
  115.         (all)
  116.         (optional "nofail" "askuser")
  117.     )
  118.  
  119.     (message "\nThe cnet.library is a shared library which CNet "
  120.         "and other utilities require on your system.  Other libraries "
  121.                 "that are listed below are required by CNet Amiga."
  122.  
  123.     (help    "These libraries are installed in LIBS: and are required "
  124.         "by CNet, and possibly used by other external utilities, including "
  125.         "the possibility of some 3rd-party programs. If you are upgrading "
  126.                 "from a previous version of CNet, you should always install the newest "
  127.                 "libraries"
  128.     )
  129.     )
  130.  
  131.     (copyfiles
  132.  
  133.         (source "sys/libs")
  134.         (dest    "sys:Libs"  )
  135.  
  136.         (all)
  137.         (optional "nofail" "askuser")
  138.     )
  139.  
  140. )
  141. )
  142.  
  143.  
  144. (procedure    CopyConfigs
  145. (
  146.     (makedir "CNET:CONFIGS")
  147.     (copyfiles
  148.  
  149.         (source  "cnet/bbsconfig.def")
  150.         (dest     "cnet:configs/")
  151.         (newname "bbsconfig4")
  152.  
  153.         (files)
  154.         (optional "nofail" "askuser")
  155.     )
  156. )
  157. )
  158.  
  159.  
  160.  
  161. (procedure    CopyStandards
  162. (
  163.     (copyfiles
  164.  
  165.         (source "cnet")
  166.         (dest   "CNET:")
  167.  
  168.         (choices
  169.         
  170.             "BIG_Numbers" "bbsroom0"
  171.         )
  172.  
  173.         (optional "nofail" "askuser")
  174.     )
  175. )
  176. )
  177.  
  178.  
  179.  
  180. (procedure    CopySysdata
  181. (
  182.  
  183.     (copyfiles
  184.  
  185.         (source "cnet/sysdata")
  186.         (dest    "sysdata:")
  187.  
  188.         (all)
  189.         (optional "nofail" "askuser")
  190.     )
  191. )
  192. )
  193.  
  194.  
  195.  
  196. (procedure    CopySpeller
  197. (
  198.     (set    DestPath
  199.  
  200.         (askdir
  201.  
  202.             (prompt    "\nPlease select where you want to install the speller "
  203.                 "master dictionary "
  204.                 ask-install-nodir
  205.             )
  206.             (help    "The dictionary can be anywhere you choose (suggestion: "
  207.                 "CNet:Spell).  Note that you must set up this path "
  208.                 "with CONFIG as well.  Consult your CNet manual."
  209.             )
  210.  
  211.             (default "CNet:Spell")
  212.         )
  213.     )
  214.  
  215.     (copyfiles
  216.  
  217.         (source "cnet/Spell")
  218.         (dest    DestPath)
  219.  
  220.         (pattern "#?")
  221.         (files)
  222.         (optional "nofail" "askuser")
  223.     )
  224.  
  225. )
  226. )
  227.  
  228.  
  229. (procedure    CopyMenus
  230. (
  231.     (copyfiles
  232.  
  233.         (source "cnet/systext/menu")
  234.         (dest    "SysText:Menu")
  235.  
  236.         (all)
  237.         (optional "nofail" "askuser")
  238.     )
  239.  
  240. )
  241. )
  242.  
  243.  
  244.  
  245. (procedure    CopyHelp
  246. (
  247.     (copyfiles
  248.  
  249.         (source "cnet/systext/help")
  250.         (dest    "SysText:Help")
  251.  
  252.         (all)
  253.         (optional "nofail" "askuser")
  254.     )
  255.     
  256. )
  257. )
  258.  
  259. (procedure    CopyTextMenu
  260. (
  261.     (if    
  262.         (exists "CNet:bbsmenu" (noreq))
  263.  
  264.         ; TRUE statement
  265.         (
  266.             (copyfiles
  267.     
  268.                 (source "cnet/!bbsmenu_stock")
  269.                 (dest    "CNet:")
  270.                 (optional "nofail")
  271.             )
  272.         )
  273.  
  274.         ; FALSE statement
  275.         (
  276.             (copyfiles
  277.     
  278.                 (source "cnet/!bbsmenu_stock")
  279.                 (dest    "CNet:")
  280.                 (newname "bbsmenu")
  281.                 (optional "nofail")
  282.             )
  283.         )
  284.     )
  285.  
  286.     (if    
  287.         (exists "CNet:bbstext" (noreq))
  288.  
  289.         ; TRUE statement
  290.         (
  291.             (copyfiles
  292.     
  293.                 (source "cnet/!bbstext_stock")
  294.                 (dest    "CNet:")
  295.                 (optional "nofail")
  296.             )
  297.         )
  298.  
  299.         ; FALSE statement
  300.         (
  301.             (copyfiles
  302.     
  303.                 (source "cnet/!bbstext_stock")
  304.                 (dest    "CNet:")
  305.                 (newname "bbstext")
  306.                 (optional "nofail")
  307.             )
  308.         )
  309.     )
  310.  
  311. )
  312. )
  313.  
  314. (procedure    CopyNew
  315. (
  316.     (copyfiles
  317.  
  318.         (source "cnet/systext/new")
  319.         (dest    "SysText:New")
  320.  
  321.         (all)
  322.         (optional "nofail" "askuser")
  323.     )
  324.     
  325. )
  326. )
  327.  
  328.  
  329.  
  330. ;
  331. ; BEGIN MASTER INSTALL PROCEDURES
  332. ; The following two procedures handle new installations and update
  333. ; installations, calling the proper procedures defined above as well as
  334. ; doing other specialized tasks.
  335. ;
  336.  
  337. (procedure    DoUpdateInstall
  338. (
  339.     (CopyExecutables1)
  340.     (CopyTextMenu)
  341.  
  342.     (if
  343.         (askbool
  344.         
  345.             (prompt "\nDo you want to re-install the menu files?")
  346.             (help    "Copies all the menu files into SYSTEXT:Menu. "
  347.                 help-modify-self
  348.             )
  349.         )
  350.  
  351.         ; TRUE (Yes) statement
  352.         (
  353.             (CopyMenus)
  354.         )
  355.     )
  356.  
  357.     (if
  358.         (askbool
  359.         
  360.             (prompt "\nDo you want to re-install the help files?")
  361.             (help    "Copies all the help files into SYSTEXT:Help. "
  362.                 help-modify-self
  363.             )
  364.         )
  365.  
  366.         ; TRUE (Yes) statement
  367.         (
  368.             (CopyHelp)
  369.         )
  370.     )
  371.  
  372.     (if
  373.         (askbool
  374.         
  375.             (prompt "\nDo you want to re-install the new-user files?")
  376.             (help    "Copies all the new-user help files into SYSTEXT:New.\n\n"
  377.                 "The new-user files are all the pieces of text "
  378.                 "which describe questions new users are asked when "
  379.                 "logging in, as well as the public and sysop questions.\n\n"
  380.                 help-modify-self
  381.             )
  382.         )
  383.  
  384.         ; TRUE (Yes) statement
  385.         (
  386.             (CopyNew)
  387.         )
  388.     )
  389.  
  390.     (CopyExecutables2)
  391.  
  392.     (if
  393.         (askbool
  394.         
  395.             (prompt "\nDo you want to re-install the CNet speller dictionary?" )
  396.             (help    "This master-dictionary rarely changes, and chances "
  397.                 "are you have added words to it yourself already. "
  398.                 "It is recommended that you skip this part of the "
  399.                 "update installation if you have made any changes "
  400.                 "to your dictionary."
  401.             )
  402.         )
  403.  
  404.         ; TRUE (Yes) statement
  405.         (
  406.             (CopySpeller)
  407.         )
  408.     )
  409.  
  410.  
  411.     (message
  412.  
  413.         "\nUpdate installed.  CNet:BBSTEXT and "
  414.         "CNet:BBSMENU were NOT installed.  Most CNet SysOps "
  415.         "have heavily modified these files. There are several utilities "
  416.         "available which can detect changes and help transfer those "
  417.         "changes into your CURRENT files, saving you from "
  418.         "starting over completely from scratch.\n\nCheck the update "
  419.         "section of your CNet manual and the UPDATE directory "
  420.         "where the cnet archive was decompressed.  There may be conversion files to run or "
  421.         "other file renaming procedures needed before you can "
  422.         "run your CNet update.\n\n"
  423.         "The newer bbstext and bbsmenu files have been installed in your CNET: "
  424.         "directory titled as !bbstext_stock and !bbsmenu_stock, respectively."
  425.     )
  426.  
  427.     (if
  428.         (askbool
  429.  
  430.             (prompt "\nYou should also run the VDE programs "
  431.                 "to create/update your system VDE files.\n\n"
  432.                 "Do you wish to run the VDE executables now?"
  433.             )
  434.             (help    "VDE is a simple utility that creates the required system "
  435.                 "VDE (Visual Data Editor) files.  See your CNet manual for more info."
  436.             )
  437.         )
  438.  
  439.         ; TRUE statement
  440.         (
  441.             (run "run CNet:VDE"  )
  442.             (run "run CNet:VDE2" )
  443.         )
  444.     )
  445.  
  446.     (if
  447.         (askbool
  448.  
  449.             (prompt "\nDo you will to run the CNet CONFIG program now?"
  450.             )
  451.             (help    "CONFIG is the CNet utility that allows you to "
  452.                 "configure/customize/personalize your BBS."
  453.             )
  454.         )
  455.  
  456.         ; TRUE statement
  457.         (
  458.             (run "run CNet:CONFIG" )
  459.         )
  460.     )
  461.  
  462.     (if